var inBrowser = typeof window !== "undefined";